import request from '@/utils/request'

/**
 * 查询课程方向,标签分页列表
 */
export function pageListLabel(query) {
    return request({
        url: '/hchy/label/pageList',
        method: 'get',
        params: query
    })
}

/**
 * 查询课程方向,标签所有列表
 */
export function listLabel(query) {
    return request({
        url: '/hchy/label/list',
        method: 'get',
        params: query
    })
}

/**
 * 查询课程方向,标签详细
 */
export function getLabel(id) {
    return request({
        url: '/hchy/label/' + id,
        method: 'get'
    })
}

/**
 * 新增课程方向,标签
 */
export function addLabel(data) {
    return request({
        url: '/hchy/label',
        method: 'post',
        data: data
    })
}

/**
 * 修改课程方向,标签
 */
export function updateLabel(data) {
    return request({
        url: '/hchy/label',
        method: 'put',
        data: data
    })
}

/**
 * 删除课程方向,标签
 */
export function delLabel(id) {
    return request({
        url: '/hchy/label/' + id,
        method: 'delete'
    })
}
